//
//  JPSliderItemCell.m
//  JPKY
//
//  Created by Vitas on 2016/11/13.
//  Copyright © 2016年 Vitas. All rights reserved.
//

#import "JPSliderItemCell.h"

@implementation JPSliderItemCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier {
    if (self = [super initWithStyle:style reuseIdentifier:reuseIdentifier]) {
        [self changeLabelStyle];
    }
    
    return self;
}

- (void)changeLabelStyle {
    
    // 设置子控件的字体
    self.textLabel.font = [UIFont fontWithName:@"MicrosoftYaHei" size:14];
    
    self.textLabel.textColor = [UIColor grayColor];
    
}

#pragma mark - 重写Setter方法
- (void)setItem:(JPSliderItemModel *)item {
    
    _item = item;
    
    self.imageView.image = [UIImage imageNamed:item.icon];
    self.textLabel.text = item.title;
    
    UIImageView *rightArrowView = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"position-right"]];
    
    self.accessoryView = rightArrowView;
}







- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
